<?php
/**
 * Created by PhpStorm.
 * User: ly
 * Date: 2017\12\23 0023
 * Time: 16:31
 */

//asset-package-editing-adds
use yii\bootstrap\ActiveForm;
use yii\helpers\Html;

?>
<div class="modal-dialog" role="document">
    <div class="modal-content">
    <form id="addProject">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true"><img src="/image/assetPackage/close.png"></span></button>
            <div class="pull-left modal-nav">
                <img src="/image/assetPackage/white.png" class="pull-left">
                <span class="pull-left">新增</span>
            </div>
        </div>
        <div class="modal-body">
            <div class="modal-body-div">
                <div class="form-group clearfix">
                    <label for="inputText4" class="pull-left control-label"> 借款人名称</label>
                    <input type="text" class="form-control" required="true" onkeyup="true" name="borrower" id="borrower" value="">
                    <input type="hidden"  id="package_id" name="package_id" value="<?php echo $packageid;?>">
                    <input type="hidden"  id="type" name="type" value="<?php echo $type; ?>">
                </div>
                <div class="form-group clearfix">
                    <label for="inputText4" class="pull-left control-label "> 本金（元) </label>
                    <input type="text" class="form-control" required="true"  number="true" onkeyup="true" id="principal" name="principal" value="">
                </div>
                <div class="form-group clearfix">
                    <label for="inputText4" class="pull-left control-label ">利息（元） </label>
                    <input type="text" class="form-control"  number="true" onkeyup="true" id="interest" name="interest" value="">
                </div>
                <div class="form-group clearfix">
                    <label for="inputText4" class="pull-left control-label "> 保证人/抵押人</label>
                    <input type="text" class="form-control"  id="guarantor" name="guarantor" value="">
                </div>
                <div class="form-group clearfix">
                    <label for="inputText4" class="pull-left control-label ">省份地区</label>
<!--                    <input type="text" class="form-control" id="inputText4" value="">-->
                    <div class="pull-left label-div" style="width: 300px;">
                        <select class="pull-left form-control area-select" name="province" style="width: 120px;" onchange="select_change(this.options[this.options.selectedIndex].value)" id="province">
                            <option value="0">-请选择省-</option>
                            <?php
                            if(count($provinceList)>0){
                                foreach($provinceList as $val){//selected = "selected"
                                    echo '<option value="'.$val['id'].'">'. $val['title'].'</option>';
                                }
                            }
                            ?>
                        </select>

                        <select class="pull-left form-control area-select2" name="city" style="width: 120px;" id="city">
                            <option value="0">-请选择市-</option>
                        </select>
                    </div>
                </div>
            </div>
        </div>
        <div class="modal-footer">
            <button type="button" class="btn btn-default btns-primary" data-dismiss="modal">取消</button>
            <button type="button" class="btn btn-primary btns-primary" id="subAddProject">保存</button>
        </div>
    </form>
    </div>
</div>
